<?php /* Smarty version 2.6.18, created on 2016-12-12 22:57:04
         compiled from informstyle/informstyle.set.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="">	
                <div class="box-header with-border">
                    <a href="index.php?a=informstyle.informstylelist" class="btn btn-default btn-sm ">标题设置</a>
                    <!--<a href="" class="btn btn-default ">正文设置</a>-->
                    <a href="index.php?a=informstyle.noticesetlist" class="btn btn-primary btn-sm ">审批设置</a>
                    <a href="index.php?a=informstyle.nooutdata" class="btn btn-success btn-sm" style="float:right;">导出</a>
                    <a href="index.php?a=informstyle.noticesetdels" class="btn btn-danger btn-sm" style="float:right; margin-left:8px; margin-right:8px;" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="一键清空">一键清空</a>
                    <a href="index.php?a=informstyle.noticesetadd" class="btn btn-warning btn-sm" style="float:right;">批量设置</a>
                </div>
                   <div class="box-body"> 
                     <p class="text-blue">无审批人代表无需审批</p>
                     <table class="table table-bordered table-striped"  id="mytable">
                              <thead>
                                    <tr style="background-color:#fcba4b;">
                                        <td width="260">发布人</td>
                                        <td>审批人</td>
										<td width="130">操作</td>
                                    </tr>	
                               </thead>
                                    <tr>
									    <td style="font-weight:bold;">部门</td>
                                        <td></td>
										<td></td>
                                    </tr>
									<?php $_from = $this->_tpl_vars['department_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
									    <td><?php echo $this->_tpl_vars['value']['department_name']; ?>
</td>
                                        <td>
										<?php $_from = $this->_tpl_vars['value']['staff_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										    <?php echo $this->_tpl_vars['v']; ?>

										<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
                                            <a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal" 
											onclick="show(<?php echo $this->_tpl_vars['value']['department_id']; ?>
)"> <i class="fa fa-edit (alias)"></i> </a>
                                            <a href="index.php?a=informstyle.noticesetdel&audit_type=department&type_id=<?php echo $this->_tpl_vars['value']['department_id']; ?>
" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
                                        </td>
                                    </tr>
									<?php endforeach; endif; unset($_from); ?>
                                    <tr>
									    <td style="font-weight:bold;">教学组</td>
                                        <td></td>
										<td></td>
                                    </tr>
                                   <tr>
									    <td>教研组</td>
                                        <td>
											<?php $_from = $this->_tpl_vars['research_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
												 <?php echo $this->_tpl_vars['value']['staff_name']; ?>

											<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
											<a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal" onclick="shows('research')"> <i class="fa fa-edit (alias)" ></i> </a>
                                           <a href="index.php?a=informstyle.noticesetdel&audit_type=research&type_id=1" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
										</td>
                                   </tr>
								   <tr>
									    <td>备课组</td>
                                        <td>
											<?php $_from = $this->_tpl_vars['prepare_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
												 <?php echo $this->_tpl_vars['value']['staff_name']; ?>

											<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
											<a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal"onclick="shows('prepare')"> <i class="fa fa-edit (alias)"></i> </a>
                                            <a href="index.php?a=informstyle.noticesetdel&audit_type=prepare&type_id=1" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
										</td>
                                   </tr>
								   <tr>
									    <td>学科组</td>
                                        <td>
											<?php $_from = $this->_tpl_vars['discipline_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
												 <?php echo $this->_tpl_vars['value']['staff_name']; ?>

											<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
											<a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal"onclick="shows('discipline')"> <i class="fa fa-edit (alias)"></i> </a>
                                            <a href="index.php?a=informstyle.noticesetdel&audit_type=discipline&type_id=1" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
										</td>
                                   </tr>
                                   <tr>
									    <td style="font-weight:bold;">年级级长</td>
                                        <td></td>
										<td></td>
                                    </tr>
                                    <?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
									    <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
级长</td>
                                        <td>
										<?php $_from = $this->_tpl_vars['value']['staff_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										    <?php echo $this->_tpl_vars['v']; ?>

										<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
                                            <a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal"> <i class="fa fa-edit (alias)" onclick="showss(<?php echo $this->_tpl_vars['value']['grade_id']; ?>
)"></i> </a>
                                            <a href="index.php?a=informstyle.noticesetdel&audit_type=grade&type_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
                                        </td>
                                    </tr>
									<?php endforeach; endif; unset($_from); ?>
                                    <tr>
									    <td style="font-weight:bold;">班主任</td>
                                        <td></td>
										<td></td>
                                    </tr>
                                    <?php $_from = $this->_tpl_vars['grades_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
									    <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
班主任</td>
                                        <td>
										<?php $_from = $this->_tpl_vars['value']['staff_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										    <?php echo $this->_tpl_vars['v']; ?>

										<?php endforeach; endif; unset($_from); ?>
										</td>
										<td>
                                            <a href="#" class="btn btn-warning btn-sm" title="修改"  data-toggle="modal" data-target="#myModal" onclick="showsss(<?php echo $this->_tpl_vars['value']['grade_id']; ?>
)"> <i class="fa fa-edit (alias)"></i> </a>
                                            <a href="index.php?a=informstyle.noticesetdel&audit_type=grades&type_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认清空信息?')==false)return false;" title="清空"> <i class="fa fa-trash-o"></i></a>
                                        </td>
									  </tr>
									  <?php endforeach; endif; unset($_from); ?>
                       </table>   
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>              
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<!-- ./wrapper -->
<!--弹出框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
     <form name="myform1" action="" method="post">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">审批人选择</h4>
          </div>
          <div class="modal-body">
				  <?php $_from = $this->_tpl_vars['appoint_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
					<label class="choice"><input type="checkbox" name="staff_id[]" value="<?php echo $this->_tpl_vars['value']['staff_id']; ?>
"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</label>
                  <?php endforeach; endif; unset($_from); ?>
          </div>
          <div class="modal-footer">
			
		    <input type="hidden" name="department_id" value="" id ="aaa">
			<input type="hidden" name="audit_type" value="" id ="bbb">
			<input type="hidden" name="grade_id" value="" id ="ccc">
			<input type="hidden" name="grades_id" value="" id ="ddd">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="submit" class="btn btn-primary">确定</button>
          </div>
      </form>
    </div>
  </div>
</div>
<!--弹出框-->
<script>

function show(a){

	$("#aaa").val(a);
	}
function shows(b){

	$("#bbb").val(b);
	}
function showss(c){

	$("#ccc").val(c);
	}
function showsss(d){

	$("#ddd").val(d);
	}
</script>




